/*
 *    Copyright (C) 2011-2012 Hai Bison
 *
 *    See the file LICENSE at the root directory of this project for copying
 *    permission.
 */

package group.pals.mailgate.ui;

/**
 *
 * @author Hai Bison
 */
public interface IPreferences {

    /**
     * Loads preferences.
     */
    public void loadPreferences();

    /**
     * Stores preferences.
     * @param prepare <code>true</code> if the controller should check the user's
     * input values first, instead of storing them.
     * @return <code>true</code> if everything is ok, and vice versa.
     */
    public boolean storePreferences(boolean prepare);

    /**
     * Closes any resource that the instance opened.
     */
    public void closeResources();
}
